package com.gxkj.projects.myshopx.dao;

import com.gxkj.common.hibernate.HibernateBaseRepositoryImpl;
import com.gxkj.projects.myshopx.entitys.Goods;
import com.gxkj.projects.myshopx.entitys.GoodsGallery;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public class GoodsGalleryDaoImpl extends HibernateBaseRepositoryImpl {

    public List<GoodsGallery> selectGoodsGalleryByGoodsId(String goodsId) {
        Map<String,Object> param = new HashMap<String,Object>();
        String  hql = " from GoodsGallery a where goodsId != :goodsId ";
        param.put("goodsId", goodsId);
        return this.selectListByHQL(hql,param);

    }
}
